<%--day04-16 springmvc接收 前台发来的ajax参数--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>springmvc接收Ajax参数</title>
    <script src="${pageContext.request.contextPath}/js/jquery-3.3.1.js"></script> <%--用双标签！！！！--%>
    <script>
        var userList = new Array();
        userList.push( {name:"zhangsan", age:18} );
        userList.push( {name:"lisi", age:20} );

        $.ajax({
           type:"POST",
            url:"${pageContext.request.contextPath}/user/save16",
            data:JSON.stringify(userList),
            contentType:"application/json;charset=utf-8"
        });
    </script>
</head>
<body>

</body>
</html>
